const state = {
    CustomDrawer: false,
    content: 0,
    headerKeyArray: [
        { 'key': 'Content-Type', edit: false },
        { key: 'encode', edit: false },
        { key: 'token', edit: false }
    ],
    modal: '',
    cache: [],
};
const getters = {};
const mutations = {};
const actions = {
    showCustomDrawer(context) {
        context.state.CustomDrawer = false;
        context.state.CustomDrawer = true;
    },
    colseCustomDrawer(context) {
        context.state.CustomDrawer = false;
    },
    changeCustom(context) {
        context.state.content++;
    },
    deleteHeaderKey(context, index) {
        context.state.headerKeyArray.splice(index, 1);
        console.log(index);
    },
};

export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions
}